package com.bianqian.demo.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 更新分类统计请求DTO
 */
@Data
public class UpdateCategoryCountRequest {
    
    @NotNull(message = "分类ID不能为空")
    private Long categoryId;
    
    @NotNull(message = "操作类型不能为空")
    @Pattern(regexp = "^(add|remove)$", message = "操作类型只能是add或remove")
    private String operation;
}







